package com.ndp.fb.fbagent.service.impl;

import java.util.Map;

import com.alibaba.dubbo.config.annotation.Service;
import com.ndp.fb.fbagent.service.AdAccountFBService;
import com.ndp.fb.model.fbagent.param.FacebookParam;
import com.restfb.Parameter;
@Service
public class AdAccountFBServiceImpl extends AbstractFBagentService implements AdAccountFBService {

	@Override
	public void getActivities(String accessToken, Long accountId, FacebookParam requestParam,Map<String, String> equipment) {
		String fields = "object_id,object_name,extra_data,translated_event_type,date_time_in_timezone,event_type,actor_id,actor_name,application_id,application_name,event_time";
		requestParam.setFields(fields);
		Parameter[] parameters = this.adapterArray(requestParam);
		String uri = "/act_" + accountId + "/activities";
		makeGetRequest(uri, accessToken, parameters);
	}

}
